import request from "../utils/request"

export default {
    // 登录接口封装
    loginApi(data) {
        return request({
            url: "/login",
            method: 'post',
            data
        })
    },
    // 注册接口封装
    registerApi(data) {
        return request({
            url: "/register",
            method: 'post',
            data
        })
    },
    getInfoApi(data) {
        return request({
            url: "/getUserInfo",
            method: "post",
            data
        })
    }
}